package chapter07_object;

/**
 * ClassName: Student
 * Package: chapter07_object
 * Description:
 *类的继承-子类
 * @Author SherryAn
 * @Create 2025/7/16 19:26
 */
public class Student extends Person{
//    //声明属性
//    String name;
//    //声明方法
//    void eat(){
//        System.out.println("会吃饭");
//    }
    void student(){
        System.out.println("爱学习");
    }
}
